<?php

	$this->Html->script(array('jquery.maskedinput-1.2.2.min','maskinput','flexigrid.pack','somente-numeros'), false);
	$this->Html->css('flexigrid', null, array('inline' => false));
	
	$professor_id = $this->request->data['ProfessorAulaMinistrada']['professor_id'];
	
	echo "<fieldset><legend>Incluir Aula Ministrada: $nome_professor</legend>";
	
	echo $this->Form->create('ProfessorAulaMinistrada');
	echo $this->Form->input('id');
	echo $this->Form->input('professor_id',array('type' => 'hidden'));
	echo $this->Form->input('disciplina_id',array('type' => 'select', 'options' => $disciplinas, 'empty' => 'Selecione...', 'class' => 'tamanho50', 'label' => __('Disciplina')));	
	echo '<div style="clear:both;"></div>';
	echo $this->Form->input('ano', array('type' => 'text', 'label' => __('Ano'), 'class' => 'tamanho20', 'maxlength' => 4, 'onKeyPress' => 'return SomenteNumero(event)'));
	echo '<div style="clear:both;"></div>';
	echo $this->Form->input('numero', array('type' => 'text', 'label' => __('Número de Aulas'), 'class' => 'tamanho20', 'maxlength' => 3, 'onKeyPress' => 'return SomenteNumero(event)'));
	echo '<div class="botoes_form">';
	echo $this->Form->button('Salvar', array('type' => 'submit'));
	echo '</div>'; 
	echo $this->Form->end();
	echo '</fieldset>';